#include <iostream>
#include <cmath>
using namespace std;
class Date {
public:
    int year;
    int month;
    int day;
    Date(int y, int m, int d) {
        year=y;
        month=m;
        day=d;
    }
    bool runnian( ) {
        if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) {
            return true;
        }
        return false;
    }
    int shijiancha (Date another) {
        int This = year * 365 + month * 30 + day;
        int anotherTotal = another.year * 365 + another.month * 30 + another.day;
        return abs(This - anotherTotal);
    }

    void showDate() {
        cout << year << "年" << month << "月" << day << "日" << endl;
    }
};
int main() {
    Date d1(2025, 11, 13);
    Date d2(2026, 1, 1);

    cout << "d1是否为闰年：" << (d1.runnian() ? "是" : "否") << endl;
    cout << "d2是否为闰年：" << (d2.runnian() ? "是" : "否") << endl;
    cout << "d1和d2的日期差：" << d1.shijiancha(d2) << "天" << endl;
    cout << "d1日期：";
    d1.showDate();

    return 0;
}
